Skip to content

docs: add ADR-0003 sqlx::migrate catalog/data migrations#175

Open
yesyayen wants to merge 1 commit into
ExtendDB:mainfrom
yesyayen:docs/adr-0003-catalog-migration
Open

docs: add ADR-0003 sqlx::migrate catalog/data migrations#175
yesyayen wants to merge 1 commit into
ExtendDB:mainfrom
yesyayen:docs/adr-0003-catalog-migration

Conversation

@yesyayen

Copy link
Copy Markdown
Collaborator

What

Adds ADR-0003 recording the decision to adopt sqlx::migrate for PostgreSQL
catalog and data schema migrations.

Why

The homegrown migration runner tracked files by name with no checksum, so an
in-place edit of an already-shipped migration produced a silent schema drift that
broke CreateTable. The ADR records the choice to replace it with sqlx's built-in
migration framework (which checksums each file and refuses to run when one changed
after it was applied).

Closes #

Testing done

N/A

Checklist

  • I have read CONTRIBUTING.md
  • All tests pass (cargo test --workspace) — n/a, docs only
  • Code is formatted (cargo fmt --check) — n/a, docs only
  • Clippy is clean — n/a, docs only
  • I have added or updated tests for new functionality — n/a
  • I have updated documentation if behavior changed
  • Breaking changes are noted below
  • ADR captures the decision (link below)

ADR / RFC: docs/adr/0003-catalog-migration-mechanism.md (added in this PR)

Breaking changes

N/A


By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache License 2.0 and I agree to the Developer Certificate of
Origin (DCO). See CONTRIBUTING.md for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant